package com.qy139.guest.util;

import java.util.Calendar;

public class RandomUtil {
    public static String toDateString(Calendar calendar) {
        int year = calendar.get(Calendar.YEAR);
        int month = calendar.get(Calendar.MONTH)+1;
        int day = calendar.get(Calendar.DAY_OF_MONTH);
        return "" + year + month + day ;
    }
}
